<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
</html>
<script>
    function RB(num) {
        const chineseNums = ['零', '一', '二', '三', '四', '五', '六', '七', '八', '九'];

        return num.toString().replace(/\d/g, match => {
            return chineseNums[parseInt(match)];
        });
    }

    console.log(RB(12))
</script>
